from django.conf.urls.defaults import patterns, url, include, handler404, handler500

from django.contrib import admin
admin.autodiscover()

import django.contrib.auth.views as auth_views
import ratsite.views as ratsite_views

urlpatterns = patterns('ratsite',
                       url(r'^$', auth_views.logout_then_login),
                       url(r'^uploads/$', ratsite_views.uploads),
                       url(r'^accounts/login/$', auth_views.login),
                       url(r'^accounts/profile/$', ratsite_views.profile),
                       url(r'^accounts/logout/$', auth_views.logout),
                       url(r'^accounts/logout_then_login/$', auth_views.logout_then_login),
                       url(r'^accounts/password_change/$', auth_views.password_change),
                       url(r'^accounts/password_change_done/$', auth_views.password_change_done),
                       url(r'^rat/', include('ratsite.rat.urls')),
                       url(r'^admin/project/manage', ratsite_views.project_manage),
                       url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
                       url(r'^admin/(.*)', admin.site.root),
                       )
